package cn.siat.gene.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 关联账户对象
 * @author mingw
 * @create 2022-11-21 14:39
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("design_t_b_external_paccout")
public class DesignTBExternalPaccout implements Serializable {
    private static final long serialVersionUID = 1L;

    //唯一标识
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    //系统编码
    private String externalSystemCode;
    //系统名称
    private String externalSystemName;
    //接口地址
    private String externalSystemInterUrl;
    //用户名
    private String externalSystemUserName;
    //密码
    private String externalSystemPassword;
    //绑定时间
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date bindTime;
    //更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    //备注
    private String remark;
    //系统用户id
    private String userId;
    //是否已绑定（ 1：绑定 ，0：未绑定）
    private Integer isBind;
    //是否已删除 （0：已删除，1：未删除）
    private Integer isDelete;
}
